package com.qf.ithub.movie_demo01.service;

import com.qf.ithub.movie_demo01.entity.Role;
import com.qf.ithub.movie_demo01.entity.dto.ActionDTO;
import com.qf.ithub.movie_demo01.entity.dto.GrantDTO;

import java.util.List;

/**
 * @author : xixi
 * @Title : 角色列表
 * @date :  2021-03-19 15:27
 */
public interface RoleService {

    List<Role> getRole();

    void addRole(Role role);

    /*
    * 给角色做动作符权
    * */
    //void updateRoleActionRights(GrantDTO grantDTO);
    List<Integer> selectActionRightByRolNoParent(Integer roleid);

    void grantActionRight( GrantDTO grantDTO);

    List<ActionDTO> selectAllActionRightByParentid();

}
